package com.cxyzy.objectboxkotlindemo

import io.objectbox.annotation.Entity
import io.objectbox.annotation.Id

@Entity
data class User(@Id var id: Long = 0, var name: String? = null) {
    override fun equals(other: Any?): Boolean {
        val other = other as User

        return name == other.name
    }
}